<?php
namespace app\admin\validate;
use think\Validate;

class Model extends Validate{
    //验证规则
    protected $rule=[
        'model_name' => 'require|unique:model',
        'table_name' => 'require|unique:model',

    ];
    protected $message=[
        'model_name.require'=>'模型名称不能为空!',
        'model_name.unique'=>'模型名称不能重复!',

        'table_name.require'=>'附加表名不能为空!',
        'table_name.unique'=>'附加表名不能重复!',

    ];

}
